import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs'

//对外暴露配置路由(常量路由):全部用户都可以访问到的路由
export const constanceRoute = [
  {
    //登录
    path: '/login',
    component: () => import('@/views/Login/index.vue'),
    name: 'login',
    meta: {
      title: '登录', //菜单标题
      icon: 'Promotion', //菜单文字左侧的图标,支持element-plus全部图标
    },
  },
  {
    // 首页
    path: '/',
    component: () => import('@/layout/index.vue'),
    name: 'layout',
    meta: {
      title: '',
      hidden: false,
      icon: '',
    },
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
          hidden: false,
          icon: 'HomeFilled',
        },
      },
    ],
  },

  {
    // 权限
    path: '/permission',
    component: () => import('@/layout/index.vue'),
    name: 'permission',
    meta: {
      title: '权限管理',
      hidden: false,
      icon:'Platform',
    },
    redirect: '/permission/MemberManagement',
    children: [
      {
        path: '/permission/MemberManagement',
        name: 'MemberManagement',
        component: () => import('@/views/permission/MemberManagement.vue'),
        meta: {
          title: '成员管理',
          hidden: false,
          icon:  'Avatar',
        },
      },
      {
        path: '/permission/PermAssignment',
        name: 'PermAssignment',
        component: () => import('@/views/permission/PermAssignment.vue'),
        meta: {
          title: '权限分配',
          hidden: false,
          icon: 'Histogram',
        },
      },
    ],
  },
  // {
  //   // 个人信息
  //   path: '/profile',
  //   component: () => import('@/layout/index.vue'),
  //   name: 'layout2',
  //   meta: {
  //     title: '',
  //     hidden: false,
  //     icon: 'UserFilled',
  //   },
  //   children: [
  //     {
  //       path: '/profile',
  //       name: 'profile',
  //       component: () => import('@/views/profile/index.vue'),
  //       meta: {
  //         title: '个人信息',
  //         hidden: false,
  //         icon: 'UserFilled',
  //       },
  //     },
  //   ],
  // },
  {
    // 竞赛
    path: '/competition',
    component: () => import('@/layout/index.vue'),
    name: 'competition',
    meta: {
      title: '竞赛管理',
      hidden: false,
      icon: 'WalletFilled',
    },
    redirect: '/competition/CompApply',
    children: [
      {
        path: '/competition/CompApply',
        name: 'CompApply',
        component: () => import('@/views/competition/apply.vue'),
        meta: {
          title: '竞赛报备',
          hidden: false,
          icon: 'Tools',
        },
      },
      {
        path: '/competition/CompApprove',
        name: 'CompApprove',
        component: () => import('@/views/competition/approve.vue'),
        meta: {
          title: '竞赛报备审核',
          hidden: false,
          icon: 'Share',
        },
      },
    ],
  },
  {
    // 论文/专利
    path: '/paper',
    component: () => import('@/layout/index.vue'),
    name: 'paper',
    meta: {
      title: '论文/专利管理',
      hidden: false,
      icon: 'List',
    },
    redirect: '/paper/PaperApply',
    children: [
      {
        path: '/paper/PaperApply',
        name: 'PaperApply',
        component: () => import('@/views/paper/apply.vue'),
        meta: {
          title: '论文/专利报备',
          hidden: false,
          icon: 'Ticket',
        },
      },
      {
        path: '/paper/PaperApprove',
        name: 'PaperApprove',
        component: () => import('@/views/paper/approve.vue'),
        meta: {
          title: '论文/专利审核',
          hidden: false,
          icon: 'Checked',
        },
      },
    ],
  },
  {
    // 公告模块
    path: '/evaluate',
    component: () => import('@/layout/index.vue'),
    name: 'scholarship',
    meta: {
      title: '通知公告',
      hidden: false,
      icon: 'Management',
    },
    redirect: '/evaluate/EvaluateApply',
    children: [
      {
        path: '/evaluate/EvaluateApply',
        name: 'SchoApply',
        component: () => import('@/views/scholarship/apply.vue'),
        meta: {
          title: '通知列表',
          hidden: false,
          icon: 'BellFilled',
        },
      },
      {
        path: '/evaluate/EvaluateUserApplication',
        name: 'SchoUserApplication',
        component: () => import('@/views/scholarship/User.vue'),
        meta: {
            title: '个人申请管理',
            hidden: false,
            icon: 'SwitchFilled',
        },
      },
      {
        path: '/evaluate/EvaluateApprove',
        name: 'SchoApprove',
        component: () => import('@/views/scholarship/approve.vue'),
        meta: {
          title: '通知管理',
          hidden: false,
          icon: 'Stamp',
        },
      },
            {
        path: '/evaluate/EvaluateApplication',
        name: 'SchoApplication',
        component: () => import('@/views/scholarship/application.vue'),
        meta: {
          title: '申请管理',
          hidden: false,
          icon: 'SwitchFilled',
        },
      },
    ],
  },
  {
    // 请假
    path: '/absence',
    component: () => import('@/layout/index.vue'),
    name: 'absence',
    meta: {
      title: '请假管理',
      hidden: false,
      icon: 'Flag',
    },
    redirect: '/absence/AbsenceApply',
    children: [
      {
        path: '/absence/AbsenceApply',
        name: 'AbsenceApply',
        component: () => import('@/views/absence/apply.vue'),
        meta: {
          title: '请假申请',
          hidden: false,
          icon: 'Opportunity',
        },
      },
      {
        path: '/absence/AbsenceApprove',
        name: 'AbsenceApprove',
        component: () => import('@/views/absence/approve.vue'),
        meta: {
          title: '请假审核',
          hidden: false,
          icon: 'HelpFilled',
        },
      },
    ],
  },
  {
    // 留言板
    path: '/comment',
    component: () => import('@/layout/index.vue'),
    name: 'Comment',
    meta: {
      title: '留言板',
      hidden: false,
      icon: 'Promotion',
    },
    redirect: '/comment/public',
    children: [
      {
        path: '/comment/public',
        name: 'CommentPublic',
        component: () => import('@/views/comment/MainComment.vue'),
        meta: {
          title: '公共频道',
          hidden: false,
          icon: 'HomeFilled',
        },
      },
      {
        path: '/comment/MyComment',
        name: 'MyComment',
        component: () => import('@/views/comment/MyComment.vue'),
        meta: {
          title: '我的留言',
          hidden: false,
          icon: 'Comment',
        },
      },
      {
        path: '/comment/MyReply',
        name: 'MyReply',
        component: () => import('@/views/comment/MyReply.vue'),
        meta: {
          title: '我评论的',
          hidden: false,
          icon: 'Comment',
        },
      },
      {
        path: '/comment/SystemComment',
        name: 'SystemComment',
        component: () => import('@/views/comment/SystemComment.vue'),
        meta: {
          title: '系统留言',
          hidden: false,
          icon: 'Briefcase',
        },
      },
      {
        path: '/comment/SystemCommentReply',
        name: 'SystemCommentReply',
        component: () => import('@/views/comment/SystemCommentReply.vue'),
        meta: {
          title: '系统留言回复',
          hidden: false,
          icon: 'ShoppingBag',
        },
      },
    ],
  },
  {
    path: '/verifyEmail',
    component: () => import('@/views/open/VerifyEmail.vue'),
    name: 'verifyEmail',
    meta: {
      title: '邮箱绑定确认',
      icon: 'HomeFilled',
    },
  },
  {
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404',
    meta: {
      title: '404',
      icon: 'DocumentDelete',
    },
  },
  {
    //任意路由
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
      title: '任意路由',
      icon: 'DataLine',
    },
  }
  // {
  //   path: '/screen',
  //   component: () => import('@/views/screen/apply.vue'),
  //   name: 'Screen',
  //   meta: {
  //     hidden: false,
  //     title: '数据大屏',
  //     icon: 'Platform',
  //   },
  // },
]
